window.onload = () => {
  myAPI.setSource((e, data) => {
    document.querySelector('#img').src = data
  })
}

document.querySelector('#btn').addEventListener('click', () => {
  myAPI.getSource()
})

